include_directories(
  ${LLVM_MAIN_SRC_DIR}/lib/Target/X86
  ${LLVM_BINARY_DIR}/lib/Target/X86
  )

add_library(LLVMExegesisX86
  STATIC
  Target.cpp
  X86Counter.cpp
  )

llvm_update_compile_flags(LLVMExegesisX86)
llvm_map_components_to_libnames(libs
  X86
  Exegesis
  )

target_link_libraries(LLVMExegesisX86 ${libs})
set_target_properties(LLVMExegesisX86 PROPERTIES FOLDER "Libraries")
